@echo off
if not exist "%JAVA_HOME%\bin\jps.exe" echo Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later is better! & EXIT /B 1

@REM stop.cmd xxx(jar file name)

setlocal enabledelayedexpansion

for /f "tokens=1" %%a in ('jps ^| findstr %1') do taskkill /f /pid %%a
